<?php

namespace Tbf\Bundle\UploadBundle;

use Symfony\Component\HttpFoundation\File\UploadedFile;

class Blob
{
    /**
     * @param  UploadedFile  $upload_file
     * @return BlobInterface
     */
    public static function fromSymfonyUploadFile(UploadedFile $upload_file)
    {
        $blob = new FileBlob($upload_file->getRealPath(),$upload_file->getClientOriginalExtension());

        return $blob;
    }
}
